package org.com.behavioralPattern.templateMethodPattern;

/**
 * 活期账户类
 * @author Jonny
 * @version 1.0
 * @Description:
 * @date 2021/4/15 16:53
 */
public class DemandAccount extends Account {

    @Override
    protected String getAccountType() {
        return "活期";
    }

    @Override
    protected double getInterestRate() {
        return 0.005D;
    }
}
